fix(hooks): argspec not propagated for class and method hooks