[Foundation] cleanup NSUndoManager