Merged undo recording for node movements back into StateMachine