Use int type for numbers when possible.

Package encoding/json now has support for parsing numbers as either floats or integers.