Replay alignment

Two commits to help align replay data.

- Adds utility for determining the effective length of a slice
- Adds support for `insert_timesteps` to be out of band.