Remove __len metamethods for compatibility with Lua 5.1 and LuaJIT