Add object compare mechanism

Targets #131
I think you already have a function for this one...