__pairs/__ipairs support

Add __pairs and __ipairs support. Bump default Lua version to 5.2 not 5.1. LuaJIT supports __pairs and __ipairs on cdata even though it is "5.1", so for luaffi defaulting to 5.2 makes sense (also for other metatable improvements).