Add rewriters for normalizing WITH and RETURN
Normalize WITH and RETURN clauses before check
Ensure correct scoping of identifiers during checking
Add ScopeTreeTest