Allow converting request['param'] to a JSON object if the only param given is a dictionary

The [Zabbix API](https://www.zabbix.com/documentation/1.8/api) requires `params` to be a JSON object instead of being an array. To allow this package do this, I’ve added a config parameter (so the default behaviour remains the same), and based on this parameter I do the conversion in Payload.request()