### 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)

}
			}
			
			if (p_edit_state == GEN_EDIT_STATE_MAIN) {
				_sanitize_node_pinned_properties(node);
			} else {
				node->remove_meta("_edit_pinned_properties_");
			}
		}
		if (missing_node) {
			missing_node->set_recording_properties(false);
		}
		ret_nodes[i] = node;
		if (node && gen_node_path_cache && ret_nodes[0]) {
			NodePath n2 = ret_nodes[0]->get_path_to(node);
			node_path_cache[n2] = i;
		}
	}
	for (const DeferredNodePathProperties &dnp : deferred_node_paths) {
		
		Node *other = dnp.base->get_node_or_null(dnp.path);
		const String string_property = dnp.property;
		if (string_property.contains("/indices/")) {
			
			const String base_property = string_property.get_slice("/", 0);
			const int index = string_property.get_slice("/", 2).to_int();
			bool valid;
			Array array = dnp.base->get(base_property, &valid);
			ERR_CONTINUE(!valid);
			if (array.size() >= index) {