Define Hash#to_query and set Hash#to_param as alias to it; with test cases

Also shouldn't we remove `split('&')` from here? I think its not required.