### 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
prop = memnew(EditorPropertyColor);
				} break;
				case Variant::STRING_NAME: {
					EditorPropertyText *ept = memnew(EditorPropertyText);
					ept->set_string_name(true);
					prop = ept;
				} break;
				case Variant::NODE_PATH: {
					prop = memnew(EditorPropertyNodePath);
				} break;
				case Variant::RID: {
					prop = memnew(EditorPropertyRID);
				} break;
				case Variant::SIGNAL: {
					prop = memnew(EditorPropertySignal);
				} break;
				case Variant::CALLABLE: {
					prop = memnew(EditorPropertyCallable);
				} break;
				case Variant::OBJECT: {
					if (Object::cast_to<EncodedObjectAsID>(value)) {
						EditorPropertyObjectID *editor = memnew(EditorPropertyObjectID);
						editor->setup("Object");
						prop = editor;
					} else {
						EditorPropertyResource *editor = memnew(EditorPropertyResource);
						editor->setup(object.ptr(), prop_name, "Resource");
						editor->set_use_folding(is_using_folding());
						prop = editor;
					}