Allow replay up to the current mark index.

Restarts replay when `replayUpToMarkIndex` is called with the current mark index, if the input for that mark has been dispatched.

Fixes #239.