identifier: add proper equals() and hashCode()

This should fix #2.
update version to 2.0.1