Unfreezing keys for factories

The upstream RDF was attempting to encode a frozen value. For the
record `{'a' => 'b'}.keys.first` is frozen.