convert params to HashMap which is always serializable

as I explained in this [issue](https://github.com/tudor-malene/Easygrid/issues/92)