Ensure that keys are deserialized correctly.