Better type handling in JsonStreamFile