improved handling of primitive types, and marshalling via Solr