make sure WMSLegend does not generate duplicate FORMAT parameter see #84