fixup! Refactor XRef in obj.js