Handle non-scalars in json_array_get
Make JsonType comparable