Bugfix for case undoing beyond end of current undo history.
Bugfix for undo/redo - clear the history of objects from previous constructors on delete.