Changed value_t from being a naked int64 to being a union with bit
fields for accessing parts of the encoded value.