Allow equality/inequality conditions on belongs_to

Fixes #265