Add the hook type as metadata when importing a hook

Fixes #58