allow apply_type_tfunc
to handle argtypes with Union
#56617
+76
−31
Merged