Only put the query parameters if there are any.
Use uint64_t for the sequence number everywhere.
Replace uint64_t with int64_t for sequence numbers and tree sizes.
Convert all the tree sizes and leaf index to int64_t.
Add a few more CHECKs.
Some more validation in AsyncLogClient.
More checks.