Added equals() and hashCode() to DefaultKlassImpl