[composer] Support merged undo/redo commands for multiframe items