Remove optimize option, add extra compactArrays check.