### Godot version

4.0.beta10.mono.official

### System information

Windows 11

### Issue description

After registering a C# Script with Autoload and trying to connect to a signal using the `Signal.connect` method (`Singleton.Signal.connect(xxx)`) fails with `Invalid get index 'Signal' (on base: 'Node (Singleton.cs)'). But with `Object.connect` it works.

### Steps to reproduce

- Create a C# class script with a Signal named `Signal` (could be any other).
- Register it with Autoload with the name `Singleton` (could be any other).
- Create a GDScript script and try to connect the Singleton's signal using `Singleton.Signal.connect(xxx)`
- When running the project it fails with `Invalid get index 'Sample' (on base: 'Node (Singleton.cs)').`

### Minimal reproduction project

[example.zip](https://github.com/godotengine/godot/files/10414500/example.zip)

{
		p_output.append(MEMBER_BEGIN "/// <summary>\n");
		p_output.append(INDENT1 "/// ");
		p_output.append("Represents the method that handles the ");
		p_output.append("<see cref=\"" BINDINGS_NAMESPACE "." + p_itype.proxy_name + "." + p_isignal.proxy_name + "\"/>");
		p_output.append(" event of a ");
		p_output.append("<see cref=\"" BINDINGS_NAMESPACE "." + p_itype.proxy_name + "\"/>");
		p_output.append(" class.\n");
		p_output.append(INDENT1 "/// </summary>");
		if (p_isignal.is_deprecated) {
			if (p_isignal.deprecation_message.is_empty()) {
				WARN_PRINT("An empty deprecation message is discouraged. Signal: '" + p_isignal.proxy_name + "'.");
			}
			p_output.append(MEMBER_BEGIN "[Obsolete(\"");
			p_output.append(p_isignal.deprecation_message);
			p_output.append("\")]");
		}
		bool is_parameterless = p_isignal.arguments.size() == 0;
		
		String delegate_name = is_parameterless ? "Action" : p_isignal.proxy_name + "EventHandler";
		if (!is_parameterless) {
			
			p_output.append(MEMBER_BEGIN "public delegate void ");
			p_output.append(delegate_name);
			p_output.append("(");
			p_output.append(arguments_sig);
			p_output.append(");\n");
			
			p_output << MEMBER_BEGIN "private static void " << p_isignal.proxy_name << "Trampoline"