Add object compare mechanism

Targets #131
Compare the serials of the objects.