fix bug to do with multivalued rdf_types