Support hooks.get_all_hooks, callback.iter_registered