Add basic support for writing cdex container in dexlayout

Pass compact dex level option to dexlayout and generate a file with
a compact dex header if it is enabled.

Added test in dex2oat_test.

Added logic to check for CompactDexFile header in
DexFileLoader::OpenCommon.

Bug: 63756964
Test: test-art-host-gtest-dex2oat_test

Change-Id: Icfec03cdb64f71de900b92754ab4be3789c71cc3
diff --git a/dex2oat/linker/image_test.h b/dex2oat/linker/image_test.h
index 492c76b..dc570da 100644
--- a/dex2oat/linker/image_test.h
+++ b/dex2oat/linker/image_test.h
@@ -247,7 +247,8 @@
         elf_writers.back()->Start();
         oat_writers.emplace_back(new OatWriter(/*compiling_boot_image*/true,
                                                &timings,
-                                               /*profile_compilation_info*/nullptr));
+                                               /*profile_compilation_info*/nullptr,
+                                               CompactDexLevel::kCompactDexLevelNone));
       }
 
       std::vector<OutputStream*> rodata;