### 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
editor_list.push_back(ep);
					}
				}
				if (!editor_list.is_empty()) {
					
					_open_editor_pressed();
					opened_editor = true;
				}
				_update_property_bg();
			}
			if (res.ptr() != sub_inspector->get_edited_object()) {
				sub_inspector->edit(res.ptr());
			}
		} else {
			if (sub_inspector) {
				set_bottom_editor(nullptr);
				memdelete(sub_inspector_vbox);
				sub_inspector = nullptr;
				sub_inspector_vbox = nullptr;
				if (opened_editor) {
					EditorNode::get_singleton()->hide_unused_editors();
					opened_editor = false;
				}
				_update_property_bg();
			}
		}
	}
	resource_picker->set_edited_resource(res);
}
void EditorPropertyResource::collapse_all_folding() {