Replacing most deprecated get() and set() calls in TrajectoryLib - relates to #239