### 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
node->set(prop_name, prop_variant);
								continue;
							}
							const Array &array = prop_variant;
							for (int k = 0; k < array.size(); k++) {
								DeferredNodePathProperties dnp;
								dnp.path = array[k];
								dnp.base = node;
								
								dnp.property = String(prop_name) + "/indices/" + itos(k);
								deferred_node_paths.push_back(dnp);
							}
						} else {
							node->set(PackedScene::META_POINTER_PROPERTY_BASE + String(prop_name), prop_variant);
							if (!Engine::get_singleton()->is_editor_hint()) {
								
								DeferredNodePathProperties dnp;
								dnp.path = prop_variant;
								dnp.base = node;
								dnp.property = prop_name;
								deferred_node_paths.push_back(dnp);
							}
						}
						continue;
					}
					ERR_FAIL_INDEX_V(nprops[j].name, sname_count, nullptr);
					if (snames[nprops[j].name] == CoreStringNames::get_singleton()->_script) {