### Godot version

4.1.dev3

### System information

Tested with Linux and Android

### Issue description

Since #73256 you can now export a typed array of nodes which holds references to the nodes assigned in the inspector. However, if you export the project you just get an empty array.

### Steps to reproduce

Export a project that makes use of exported node arrays.

### Minimal reproduction project

[test.zip](https://github.com/godotengine/godot/files/11596494/test.zip)

array.push_back(other);
			} else {
				array.set(index, other);
			}
			dnp.base->set(base_property, array);
		} else {
			dnp.base->set(dnp.property, other);
		}
	}
	for (KeyValue<Ref<Resource>, Ref<Resource>> &E : resources_local_to_scene) {
		if (E.value->get_local_scene() == ret_nodes[0]) {
			E.value->setup_local_to_scene();
		}
	}
	
	int cc = connections.size();
	const ConnectionData *cdata = connections.ptr();
	for (int i = 0; i < cc; i++) {
		const ConnectionData &c = cdata[i];
		
		
		NODE_FROM_ID(cfrom, c.from);
		NODE_FROM_ID(cto, c.to);
		if (!cfrom || !cto) {
			continue;
		}
		Callable callable(cto, snames[c.method]);
		if (c.unbinds > 0) {
			callable = callable.unbind(c.unbinds);
		} else if (!c.binds.is_empty()) {