Undo/Redo mostly complete

To undo and redo a pinch/rotate, it seems to be off by one change.