Proc class should be defined before a first method definition

Some native cfunc proc can't get self class and arity got by `mrb_method_search_vm`.