Handle the limits for int32_t correctly when deciding how to store an int64_t.
Allow an int32_t to be assigned to an int64_t when decoding.