Change ``frame`` and ``scope`` of ``NamedExpr`` for certain parents (#1221) Co-authored-by: Marc Mueller <[email protected]>