Fix bug in KVHeapDictionary::Cursor::currVal when using a reverse
iterator