idref equals/hashCode