Implement a symbolic object for the relation "is an element of"

- [ ] naming (e.g. In, MemberOf, Element)
- [ ] move this class to the logic module?
- [ ] latex support and pretty-printing

(on top of the one commit from #7898)