hook: Accepts inline, link_type for get_urls() (chfoo/wpull#25).

Moves Callbacks.to_native_type to HookEnvironment.to_script_native_type.