Add metatableregistry to ObjFun

 so that class functions returning custom type registered via SetObj work
if the variable isn't set, link_directories won't do anything