Allow filtering on ids and on empty (null) values in Collections (bug 911382)

This requires a custom implementation of FilterSet.qs, because out of the
box django-filter doesn't allow this at all.