Implement IN and BETWEEN for link queries

Added some more tests for link queries and it turned out that I missed that link queries need an entirely separate implementation of them from normal queries.
Core actually fixed this, but we haven't had time to add support for this yet. Users haven't explicitly asked for this vs the many p1/p2 items which have been requested. Adding support on the objc side is a subtask of the predicate item.