Expose Trajectory::Iterator, add a transforming iterator, and adjust the clients