Repository: godot
Issue: Signals appear to be broken to some extent
Labels: bug,topic:editor,needs testing,regression

### Godot version

v4.2.rc2.official [1ba920fad]

### System information

Godot v4.2.rc2 - macOS 14.1.1 - GLES3 (Compatibility) - Apple M1 - Apple M1 (8 Threads)

### Issue description

I've messed around a lot with signals and until now I've NEVER had anything remotely strange or buggy happen other then the occasional signal is working, just the editor not showing the symbol next to the function. BUT I started a new project starting with Godot 4.2.rc2 and I've run into crashes, signals not connecting at all, custom arguments disappearing or turning to there default value.

Crashes: This that I noticed so far is strictly in some cases where you attempt to set a dictionary or array value as an Object type and set in my case as New PackedScene. This doesn't happen too frequently

Signals not connecting/randomly disappearing: Right after pressing connect to finalize there is no icon next to node in node tree and the connection is missing from signals tab and the signal doesn't work during runtime. Other times the signals have all just randomly disappeared, every single one from a scene file I have not touched anything but the script file for it. This happens not too frequent unless you combine it with the next issue

--- When signals fail to connect I see to get something like this: Cannot connect to 'pressed': the provided callable is not valid: VBoxContainer(Main.gd)::_on_world_pressed but if I do it again the exact same thing it works, but also if I don't add an argument during signal created with Advanced it seems to work reliably. Sometimes it adds the signal function and sometimes it don't. If it does the first time it will tell me this even though when it gives me this, everything is finally working...til it randomly breaks: res://Main.gd:70 - Parse Error: Function "_on_world_pressed" has the same name as a previously declared function.

Custom Arguments: This seems to be mostly surrounding Arrays and dictionaries. When you lose data for example New PackedScene like in the crashes if you set it's Path and it doesn't work if you go back to try and reset this, you can't til you close the project (I'm pretty sure closing the scene wasn't enough if I even did this) Then you can try again. Trying to use a signal with a custom argument of Array or Dictionary pretty much always fails and if it doesn't the argument types data is null again instead of what you set it to.

All of these issues I have recordings of happening. I'll hopefully be going through those this weekend and maybe I can share if there is disbelief this is happening how I claim, since it does sound absurd lol

Also I know I tried to break these up into groups as much as possible, but as you can tell a lot of them have similar things going on or a similar situations with a slight variation has a whole other issues. 

### Steps to reproduce

Crashes: May happen sometimes when using Advanced Signal connections and adding a Agument of Type Array or Dictionary when it's Type is set to Object and you click New PackedScene (may happen with others, this is just what I was trying to do)

Signals not connect/randomly disappearing: This kinda just happens when connecting signals there doesn't seem to be any solid reason or way to cause it to happen. Most probable way I think I got this to fail completed was using the example for Crashes, but may need to fill in the path. 

Custom Arguments: if you set Types and Values for Arrays and Dictionaries they don't stay

### Minimal reproduction project

Any project very bare bones will cause this to happen. No need to provide as it takes actions being done to reproduce that providing a project itself won't show or do for you.