fixed equality check of ReferenceInfo objects