In order to store integer values between INT64_MAX and UINT64_MAX, add a uint64_t internal representation. Backports commit 61a8f418b26a2d974e38e4ae55020aca8d402d88 from qemu