Blacklight::SolrRepository should preserve the class of the incoming params

Fixes #1039 and fixes #1040.