Add metatableregistry to ObjFun

 so that class functions returning custom type registered via SetObj work
Oh I see. The same can be done for the Fun class, will make the change when I get a chance.