Add test cases for array and hash for #to_param

if this code actually requires the to_query methods, its better to test them in the to_query_test.rb