Improved undo and redo methods of DeleteAllOperation.