Added UndoManager#clear() to destroy all tracked undoable history.