Added interface CommandStateWithOutput to decouple undoable of
PendingUndoablePair further from ReversibleCommand.