fix(dirty_checking): implement key() getter in KeyValueRecord

Self-explanatory, fixes some tests.