better __factory support and faster cdata support (workaround __metatable=ffi)