unifies hashcode and equals of CtElementImpl