`merge_params` merges hashes in an array

`merge_params` merges hashes that are placed in an array.

```
:templates=>[{:templateid=>12223}, {:templateid=>12224}]}
```
is merged and converted in JSON like the following:
```
"templates":[{"templateid":12224}]}]
```