resolve

Resolve indirect refs against refs; non-refs return themselves.