add 'invalid_type_encoder' option
add encode_sort_keys option
set metatable.__jsontype to 'array' or 'object' for decoded tables