function in(x, r::NegatedIndex) works for NegatedIndex <: Integer, Range or Range1