added functor support to method_traits and function_traits