added specialcase for keyvaluepair enumerables as they just need to be converted to strings