Don't do self-ref checks if ref type is different than ident type