### Godot version

d01ac9c73

### System information

ArchLinux x11

### Issue description

Signal with unbinds[^1] fails to emit in exported project.

[^1]: ![image](https://user-images.githubusercontent.com/70787919/215381688-1df57b26-2ed5-4473-a9dd-54d9c2228567.png)


### Steps to reproduce

- open mrp
- run in editor
- `it worked!` is printed
- export project
- run executable
-  
```c++
ERROR: Error calling from signal 'sig' to callable: 'Node::_on_sig': Method expected 0 arguments, but called with 1.
   at: emit_signalp (core/object/object.cpp:1058)
```

### Minimal reproduction project

[bug.zip](https://github.com/godotengine/godot/files/10531944/bug.zip)

}
						continue;
					}
					ERR_FAIL_INDEX_V(nprops[j].name, sname_count, nullptr);
					if (snames[nprops[j].name] == CoreStringNames::get_singleton()->_script) {
						
						
						
						List<Pair<StringName, Variant>> old_state;
						if (node->get_script_instance()) {
							node->get_script_instance()->get_property_state(old_state);
						}
						node->set(snames[nprops[j].name], props[nprops[j].value], &valid);
						
						for (const Pair<StringName, Variant> &E : old_state) {
							node->set(E.first, E.second);
						}
					} else {
						Variant value = props[nprops[j].value];
						if (value.get_type() == Variant::OBJECT) {
							
							Ref<Resource> res = value;
							if (res.is_valid()) {
								if (res->is_local_to_scene()) {