Allow element type inference for json types & jsonpath for range of
ranges of elements
Fix write_json & native_to_little_endian declarations