Bugfix: The undoTypes-object is now stored/referenced per UndoAction
The undoTypes now have a "condition" function that is called in the "on"-Handler

The "condition" function gets called with the same arguments like the
"on" function. If it returns true, the "on" function continues and
creates the UndoAction-data. If it returns false, no UndoAction gets
created