Add an XRef::fetch variant that takes a const Ref

makes the code more compact and easier to understand
8 files changed