segmentation.pyx: IndexAccessor.__setitem__ has a special fast path case for when value is an int (not an array).