Implement undo responses in StateManager. undo and redo no longer causes exception.