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

ERR_FAIL_INDEX_V(p_idx, nodes.size(), Ref<PackedScene>());
	if (nodes[p_idx].instance >= 0) {
		if (nodes[p_idx].instance & FLAG_INSTANCE_IS_PLACEHOLDER) {
			return Ref<PackedScene>();
		} else {
			return variants[nodes[p_idx].instance & FLAG_MASK];
		}
	} else if (nodes[p_idx].parent < 0 || nodes[p_idx].parent == NO_PARENT_SAVED) {
		if (base_scene_idx >= 0) {
			return variants[base_scene_idx];
		}
	}
	return Ref<PackedScene>();
}
String SceneState::get_node_instance_placeholder(int p_idx) const {
	ERR_FAIL_INDEX_V(p_idx, nodes.size(), String());
	if (nodes[p_idx].instance >= 0 && (nodes[p_idx].instance & FLAG_INSTANCE_IS_PLACEHOLDER)) {
		return variants[nodes[p_idx].instance & FLAG_MASK];
	}
	return String();
}
Vector<StringName> SceneState::get_node_groups(int p_idx) const {
	ERR_FAIL_INDEX_V(p_idx, nodes.size(), Vector<StringName>());
	Vector<StringName> groups;
	for (int i = 0; i < nodes[p_idx].groups.size(); i++) {
		groups.push_back(names[nodes[p_idx].groups[i]]);
	}
	return groups;
}
NodePath SceneState::get_node_path(int p_idx, bool p_for_parent) const {