### Godot version

v4.1.2.rc1.official [58f0cae4a] and v4.2.dev5.official [e3e2528ba]

### System information

Godot v4.1.2.rc1 - Windows 10.0.19044 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1650 (NVIDIA; 31.0.15.3742) - AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx (8 Threads)

### Issue description

Clearing one of the values of a typed array in the inspector seems to just unreference value and not set it to `<null>`, so the value becomes `<Object#null>`. Array's find function seems to look for the `<null>` value and doesn't accept `<Object#null>`, even if in GDScript `<Object#null>` == `<null>`. So, when calling array.find(null) in the tool script, the function can't find anything. When the project is restarted or you run it, the values that were equal to `<Object#null>` will become `<null>`.
![image](https://github.com/godotengine/godot/assets/118438257/208dbf2c-19ea-4d97-9e46-646662cb5122)

### Steps to reproduce

1. Export a typed array of Resource or any of the types that inherit from it;
2. Set one of the values of a typed array to anything;
3. Clear the value;
4. Use array.find(null) in any of the tool scripts.

### Minimal reproduction project

[ArrayBug.zip](https://github.com/godotengine/godot/files/12789530/ArrayBug.zip)
value_type = subtype;
			}
			if (value_type == Variant::OBJECT && Object::cast_to<EncodedObjectAsID>(value)) {
				EditorPropertyObjectID *editor = memnew(EditorPropertyObjectID);
				editor->setup("Object");
				prop = editor;
			} else {
				prop = EditorInspector::instantiate_property_editor(nullptr, value_type, "", subtype_hint, subtype_hint_string, PROPERTY_USAGE_NONE);
			}
			prop->set_object_and_property(object.ptr(), prop_name);
			prop->set_label(itos(i + offset));
			prop->set_selectable(false);
			prop->set_use_folding(is_using_folding());
			prop->connect("property_changed", callable_mp(this, &EditorPropertyArray::_property_changed));
			prop->connect("object_id_selected", callable_mp(this, &EditorPropertyArray::_object_id_selected));
			prop->set_h_size_flags(SIZE_EXPAND_FILL);
			prop->set_read_only(is_read_only());
			hbox->add_child(prop);
			bool is_untyped_array = array.get_type() == Variant::ARRAY && subtype == Variant::NIL;
			if (is_untyped_array) {
				Button *edit_btn = memnew(Button);
				edit_btn->set_icon(get_editor_theme_icon(SNAME("Edit")));
				hbox->add_child(edit_btn);
				edit_btn->set_disabled(is_read_only());
				edit_btn->connect("pressed", callable_mp(this, &EditorPropertyArray::_change_type).bind(edit_btn, i + offset));
			} else {
				Button *remove_btn = memnew(Button);
				remove_btn->set_icon(get_editor_theme_icon(SNAME("Remove")));
				remove_btn->set_disabled(is_read_only());
				remove_btn->connect("pressed", callable_mp(this, &EditorPropertyArray::_remove_pressed).bind(i + offset));