resolves #589 basic support for resolving xref from reftext