Allow HasTraits classes to be cythonized

HasTraits classes did not support being cythonized. References to python MethodType and FunctionType were not resolved properly with Cython as it exposed the methods as CyFunction/cython_function_or_method type. This PR should fix the issue. The testing has been made on default method and simple events. 

Starting some more testing on larger apps right now.