Resolve type references.