### Godot version

Godot 4.0 Beta 11 x64 Linux Official

### System information

Linux Mint 21.1 Cinnamon 64Bit Linux OS

### Issue description

Hi,

On Godot 4.0 Beta 10 everything was OK.
On new Godot 4.0 Beta 11, our game does not run?

Getting strange errors like below:
```
for index in range(0, 4):
	InterfaceCore.Icons.IconAnimationTimer[index] = -1
# Parser Error: Could not resolve member "Icons": Cyclic reference.
```

Any ideas?

### Steps to reproduce

Reproducible when running game on Godot 4.0 Beta 11 x64 Linux version.

### Minimal reproduction project

https://github.com/BetaMaxHero/GDScript_Godot_4_T-Story
GDScriptCodeGenerator::Address pattern_result = codegen.add_temporary();
					for (int k = 0; k < branch->patterns.size(); k++) {
						pattern_result = _parse_match_pattern(codegen, err, branch->patterns[k], value, type, pattern_result, k == 0, false);
						if (err != OK) {
							return err;
						}
					}
					
					gen->write_if(pattern_result);
					
					gen->pop_temporary();
					
					err = _parse_block(codegen, branch->block, false); 
					if (err) {
						return err;
					}
					codegen.end_block(); 
				}
				
				for (int j = 0; j < match->branches.size(); j++) {
					gen->write_endif();
				}
				gen->end_match();
			} break;
			case GDScriptParser::Node::IF: {
				const GDScriptParser::IfNode *if_n = static_cast<const GDScriptParser::IfNode *>(s);
				GDScriptCodeGenerator::Address condition = _parse_expression(codegen, err, if_n->condition);
				if (err) {
					return err;
				}