ExpressionTypingContext now has a scope for visibility checking, which isn't replaced on replaceScope()