BitArrayOptimizer typedef
Optimizes the BitArray into a representation that takes less memory.
May return the same array instance or null to indicate that there is no
optimized version for it.
Implementation
typedef BitArrayOptimizer = BitSet Function(BitArray array);