RefResolver: inline loadRef()