Move DIRef::getName out of line.