Merge pull request #14949 from bogdan/empty-hash-array-parameterization

[Fixes #14948] Hash#to_query: right serialization for  empty hash and array
Conflicts:
	activesupport/CHANGELOG.md