Bug fix: the key needs to be the last field in struct KV to use
left-to-right consistency.