Fix `in/not in` operator handling for non-sequential types