Turn queryParams and formParams into List<Param>, close #595