Trajectory: fix constness of getter methods