Make reattachAliasedExpressions only inline non-shadowing projections

o Introduce mapping from input position to scope in SemanticState
o Expose this mapping as SemanticTable.scopes
o For now, this is only filled by CloseClauses.semanticCheck (RETURN, WITH)