Add compactArrays option to compaction.