ASTERIXDB-1148: Selectable array-wrapping of results

Introduce "wrapper-array" parameter to HTTP API which selects (for ADM and
JSON) whether to wrap the result sequence in a generated outer array. For
JSON this defaults to "true" as before. For ADM this defaults to false,
resulting in a large number of expected-results changes.

Also introduce ability to have AQL tests which provide HTTP parameters.

Change-Id: I3122f136ff9ca8a2c2268238c57bb5eddab7b27e
Reviewed-on: https://asterix-gerrit.ics.uci.edu/473
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Chris Hillery <ceej@lambda.nu>
diff --git a/asterix-app/src/test/resources/runtimets/testsuite.xml b/asterix-app/src/test/resources/runtimets/testsuite.xml
index 097805e..563163b 100644
--- a/asterix-app/src/test/resources/runtimets/testsuite.xml
+++ b/asterix-app/src/test/resources/runtimets/testsuite.xml
@@ -4444,11 +4444,23 @@
         </test-case>
         <test-case FilePath="scan">
             <compilation-unit name="alltypes_01">
+                <parameter name="wrapper-array" value="true"/>
+                <output-dir compare="Text">alltypes_01-wrapped</output-dir>
+            </compilation-unit>
+        </test-case>
+        <test-case FilePath="scan">
+            <compilation-unit name="alltypes_01">
                 <output-dir compare="Lossless-JSON">alltypes_01-losslessjson</output-dir>
             </compilation-unit>
         </test-case>
         <test-case FilePath="scan">
             <compilation-unit name="alltypes_01">
+                <parameter name="wrapper-array" value="false"/>
+                <output-dir compare="Lossless-JSON">alltypes_01-losslessjson-unwrapped</output-dir>
+            </compilation-unit>
+        </test-case>
+        <test-case FilePath="scan">
+            <compilation-unit name="alltypes_01">
                 <output-dir compare="Clean-JSON">alltypes_01-cleanjson</output-dir>
             </compilation-unit>
         </test-case>