copy has_method implementation over from perl6
copy has_method implementation over from perl6

The perl6 implementation uses the method_table instead
of iterating over all methods. It ignores $local for now,
this may need to be fixed in the future.

cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp