### Godot version

9f12e7b52d944

### System information

arch linux

### Issue description

Attempting to edit from the editor a typed array exported from a tool script fails, any value is immediately reset, setters are never called.

### Steps to reproduce

Create a script such as follows and try to add and then change items of the array in the inspector.


```gdscript
@tool
extends Node

@export var x: Array[String]
```

### Minimal reproduction project

n/a
string_name = p_string_name;
	loose_mode = p_loose_mode;
	options.clear();
	if (loose_mode) {
		
		option_button->add_item("", options.size() + 1000);
	}
	for (int i = 0; i < p_options.size(); i++) {
		options.append(p_options[i]);
		option_button->add_item(p_options[i], i);
	}
	if (loose_mode) {
		edit_button->show();
	}
}
void EditorPropertyTextEnum::_bind_methods() {