Add metatableregistry to ObjFun

 so that class functions returning custom type registered via SetObj work