Allow protected/private on_entry/on_exit callbacks

#53 added support for protected/private transition callbacks, but not for `on_*_entry` and `on_*_exit` callbacks. This patch uses the same `has_callback?` handler for them.