Implement __contains__ for one-to-many sets