Fix truncation of bytes/bytes_read/bytes_written stats

These stats are stored in a `uint64_t` but we were truncating them to 32 bits.