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

}
Error BindingsGenerator::_generate_cs_type(const TypeInterface &itype, const String &p_output_file) {
	CRASH_COND(!itype.is_object_type);
	bool is_derived_type = itype.base_name != StringName();
	if (!is_derived_type) {
		
		CRASH_COND(itype.cname != name_cache.type_Object);
		CRASH_COND(!itype.is_instantiable);
		CRASH_COND(itype.api_type != ClassDB::API_CORE);
		CRASH_COND(itype.is_ref_counted);
		CRASH_COND(itype.is_singleton);
	}
	_log("Generating %s.cs...\n", itype.proxy_name.utf8().get_data());
	StringBuilder output;
	output.append("namespace " BINDINGS_NAMESPACE ";\n\n");
	output.append("using System;\n"); 
	output.append("using System.Diagnostics;\n"); 
	output.append("using Godot.NativeInterop;\n");
	output.append("\n"
				  "#pragma warning disable CS1591 // Disable warning: "
				  "'Missing XML comment for publicly visible type or member'\n"
				  "#pragma warning disable CS1573 // Disable warning: "
				  "'Parameter has no matching param tag in the XML comment'\n");
	output.append("\n#nullable disable\n");
	const DocData::ClassDoc *class_doc = itype.class_doc;
	if (class_doc && class_doc->description.size()) {
		String xml_summary = bbcode_to_xml(fix_doc_description(class_doc->description), &itype);
		Vector<String> summary_lines = xml_summary.length() ? xml_summary.split("\n") : Vector<String>();
		if (summary_lines.size()) {
			output.append("/// <summary>\n");