Improves undo unit tests
Fixes SC.UndoManager to match the unit tests
Adds a levelsOfUndo property to SC.UndoManager