add implementation for hooking on class-method
(both 'bound' and 'unbound' case)