Add test cases for array and hash for #to_param

Also in to_query_test, we will have to test to_query method only, not to_param, when in Reality to_query is alias of to_param.