Add test cases for array and hash for #to_param

Also for hash_in_array test case, We will have to test to_param, as Array doesn't define to_query as alias.
Hence to_param test cases will be half in to_query_test.rb, will this be right? WDYT?