fix(hooks): Resource-aware hooks don't work with callable classes

The new resource-aware hooks feature assumed that hooks were functions,
so callable classes (which impliment __call__ explicitly) caused an
error to be raised by inspect.getargspec. This patch fixes that up.