Lens rigidity with trapped geodesics in two dimensions