change default hook prototype

for function hook, now we will prepend a 'bnd' parameter, which would
be 'self' in bounded method, and 'none' in any other case.