Issue #28649: fix first issue with _ForwardRef (#327) (3.6->3.7)