Adding a configuration opton allowing to disable array optimized serialization