### 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)

if (parsed_classes.has(p_script)) {
		return OK;
	}
	if (parsing_classes.has(p_script)) {
		String class_name = p_class->identifier ? String(p_class->identifier->name) : p_class->fqcn;
		_set_error(vformat(R"(Cyclic class reference for "%s".)", class_name), p_class);
		return ERR_PARSE_ERROR;
	}
	parsing_classes.insert(p_script);
	p_script->clearing = true;
#ifdef TOOLS_ENABLED
	p_script->doc_functions.clear();
	p_script->doc_variables.clear();
	p_script->doc_constants.clear();
	p_script->doc_enums.clear();
	p_script->doc_signals.clear();
	p_script->doc_tutorials.clear();
	p_script->doc_brief_description = p_class->doc_brief_description;
	p_script->doc_description = p_class->doc_description;
	for (int i = 0; i < p_class->doc_tutorials.size(); i++) {
		DocData::TutorialDoc td;
		td.title = p_class->doc_tutorials[i].first;
		td.link = p_class->doc_tutorials[i].second;
		p_script->doc_tutorials.append(td);
	}
#endif
	p_script->native = Ref<GDScriptNativeClass>();
	p_script->base = Ref<GDScript>();