Add test cases for array and hash for #to_param

i think it's more important to test the file/class which adds behavior, than to match method name.

if to_query code is modifying behavior of other methods, the test should still be in to_query_test.