UndoManager: support grouping of operations