BUG: Fix ManyManyList#removeAll() when filters are applied to the query

In order to be cross-database compatible and support filters, the IDs to
delete must be retrieved in one query, and then deleted in a second
query.