### 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
GDCLASS(EditorPropertyCheck, EditorProperty);
	CheckBox *checkbox = nullptr;
	void _checkbox_pressed();
protected:
	virtual void _set_read_only(bool p_read_only) override;
	static void _bind_methods();
public:
	virtual void update_property() override;
	EditorPropertyCheck();
};
class EditorPropertyEnum : public EditorProperty {
	GDCLASS(EditorPropertyEnum, EditorProperty);
	OptionButton *options = nullptr;
	void _option_selected(int p_which);
protected:
	virtual void _set_read_only(bool p_read_only) override;
	static void _bind_methods();
public:
	void setup(const Vector<String> &p_options);
	virtual void update_property() override;
	void set_option_button_clip(bool p_enable);
	EditorPropertyEnum();
};
class EditorPropertyFlags : public EditorProperty {