slightly improve the time stepping heuristic

i.e., limit the size of the next to last time step of an episode (or
the whole simulation) has more than half of the size of what's left to
finish the episode (or simulation), chose the time step size, such
that the last and second to last time steps exhibit identical length.