Fixes CompactMap.IndexedIterator#remove not working correctly.