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

const Variant &prop_variant = props[nprops[j].value];
						if (prop_variant.get_type() == Variant::ARRAY) {
							const Array &array = prop_variant;
							if (Engine::get_singleton()->is_editor_hint()) {
								if (array.get_typed_builtin() == Variant::NODE_PATH) {
									
									node->set(prop_name, prop_variant);
									continue;
								}
							}
							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 {
							
							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) {