fix to: https://github.com/openlayers/openlayers/issues/1404
Add viewparams to list of params when building url for getFeatureInfo.
This enables requesting getFeatureInfo for WMS layers that are from the database - defined as sql-view layers in geoserver.