Replace uint64_t with int64_t for sequence numbers and tree sizes.