specs for equality checking
change rel_type to type
implements ==
basic support for :where with :any in model
additional specs