added support for up and self links where (db) stored string does not

match imported string (the case where an imported object has been
exported and the exported reference is being used on a subsequent
import)