Correctly handle sparse arrays in querystring parse/stringify