JSON generator: don't use long when writing i64

This should hopefully fix issues in THRIFT-2859 for platforms with 32-bit long.