Fix deserialization of records with serialized attributes, see https://github.com/orslumen/record-cache/issues/19