Support scalars on both sides for $in and $nin.