Fix documentation signatures for nested type references (#131958)