UndoManager: simplify interface's default_init()

The GObject doc says that default_init() is called only once:
"This function is called only once for the interface no matter how many
implementations there are."
Various small code clean-ups