Add test cases for array and hash for #to_param

I'd test the cases without hash here, and the case with hash in the query test.

more smaller tests is better, that way they are less coupled and easier to find what's broken if it is