Fixes #5163. JS elgg.parse_str support for key[]=value1&key[]=value2.

Pulling #5215 into master