Fix array-based custom option removal.