Add object compare mechanism

Targets #131