Adding missing equals() method to TreeTypeComponent.