Add test of base option in expansion manifest.
Add compactArrays=false option for compact and flatten API tests. Also tests passing a context to flatten.