ir: Remove scope from Function, add scope to BlockStatement.
semantic: Correctly gather and lookup with nested block statements.