Fix bug in Trajectories.time_interpolate