Remove the debug block.
queryRefs returns an error code, so I should just print the refs.
When two terms are defined that differ within the possible dfn-text variance, it's impossible to avoid link warnings (though they still link correctly). Make it so that we try an exact match first, and only vary the text when that fails for some reason.
Replace the anchor handling with the new infotree-based one. Fixes #283.