Fix for issue 2736.

Arrays in query strings are now preserved. For example ?cat[]=5&cat[]=10&cat[]=20
Merge pull request #2737 from Joris-van-der-Wel/issue2736

Fix for issue 2736.