Make sure nesting arrays are compacted to avoid memory overflow

See https://github.com/visionmedia/node-querystring/issues/104