Compare keys against other instead of self in __eq__

The equivalence function in BaseModel was comparing an item's keys against itself instead of other. Quick bugfix.