Add int64_t and uint64_t support. Fix value comparison bugs.