### Godot version

master (95ce236b7d6a70a06ecc13fb08d48da90ed98430)

### System information

Windows 11, Vulkan Mobile, NVidia RTX 3070 TI

### Issue description

Gdscript is now crashing when a default argument of type array occurs:

```gdscript
func _ready():
	# This works
	test([1, 1, 1])
        
	# This crashes
	test()
	
func test(array := [1, 2, 3]):
	print("array is ", array)
```

### Steps to reproduce

The code snippet above is enough to produce the issue. Bisecting the repository indicates the issue was introduced by https://github.com/godotengine/godot/commit/a1d06749f18c3f47c6443ece2ec625d8ee5f1761.


### Minimal reproduction project

[DefaultArrayCrash.zip](https://github.com/godotengine/godot/files/10357164/DefaultArrayCrash.zip)

gen->start_match_branch(); 
					codegen.start_block(); 
					
					_add_locals_in_block(codegen, branch->block);
#ifdef DEBUG_ENABLED
					
					gen->write_newline(branch->start_line);
#endif
					
					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();