Use the method of a base if it's unset

After applying this PR, if you set a callback to `NULL`, the system will search for implementation i base classes.
Deinit and some other special methods are not affected by this.
As well for the other occurences, of course.