GEOT-4916: improve checks on domain types
Simplify filters before sending them over to SOLR
Merge pull request #562 from dromagnoli/GEOT-4916

GEOT-4916: improve checks on domain types
[GEOT-4919] Failure to run a query will return the JDBCFeatureReader to report a connection leak
Make sure we don't send to SOLR geometries with segments spanning more than 180 degrees in longitude