Fixed a problem with querying sets introduced with the new
querying-members-in-collections feature.