Don't do self-ref checks if ref type is different than ident type
Merge pull request #5 from Juniper/no-self-ref-chk

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