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

nd.owner = 0;
	} else {
		nd.owner = -1;
	}
	MissingNode *missing_node = Object::cast_to<MissingNode>(p_node);
	
	
	if (states_stack.is_empty() && !is_editable_instance) {
		
		if (missing_node != nullptr) {
			
			nd.type = _nm_get_string(missing_node->get_original_class(), name_map);
		} else {
			nd.type = _nm_get_string(p_node->get_class(), name_map);
		}
	} else {
		
		
		nd.type = TYPE_INSTANTIATED;
	}
	
	
	
	
	
	bool save_node = nd.properties.size() || nd.groups.size(); 
	save_node = save_node || p_node == p_owner; 
	save_node = save_node || (p_node->get_owner() == p_owner && instantiated_by_owner); 
	int idx = nodes.size();