Add `undoRedo.reset`.
Delete `win` and `doc` from `savedSelection` in `getCurrentState`.
Fix UndoRedo test.
Test selection in UndoRedo in a more cross-browser way.