Add test cases for array and hash for #to_param

This would cause circular dependency. For me this implementation should be moved to `to_query` and this one be an alias for it.