make cjson encoding respect metatable.__jsontype