parseQueryString: Added support for arrays

Supports a[0]=1&a[1]=2 or a[]=1&a[]=2