Add test cases for array and hash for #to_param

Okay I will update the tests.