Adds support for Object states (Fixes #4)

Adds a naive `isEqual` implementation and updates spec to support object
states.