Use Long.toString() to serialize numbers that are integers.

Avoids 99000000 in a Double being serialized as "9.9E7".