Added the foreach scope to the core/variable_scope.