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

builtin_types.clear();
	TypeInterface itype;
#define INSERT_STRUCT_TYPE(m_type)                                 \
	{                                                              \
		itype = TypeInterface::create_value_type(String(#m_type)); \
		itype.c_type_in = #m_type "*";                             \
		itype.c_type_out = itype.cs_type;                          \
		itype.cs_in_expr = "&%0";                                  \
		itype.cs_in_expr_is_unsafe = true;                         \
		builtin_types.insert(itype.cname, itype);                  \
	}
	INSERT_STRUCT_TYPE(Vector2)
	INSERT_STRUCT_TYPE(Vector2i)
	INSERT_STRUCT_TYPE(Rect2)
	INSERT_STRUCT_TYPE(Rect2i)
	INSERT_STRUCT_TYPE(Transform2D)
	INSERT_STRUCT_TYPE(Vector3)
	INSERT_STRUCT_TYPE(Vector3i)
	INSERT_STRUCT_TYPE(Basis)
	INSERT_STRUCT_TYPE(Quaternion)
	INSERT_STRUCT_TYPE(Transform3D)
	INSERT_STRUCT_TYPE(AABB)
	INSERT_STRUCT_TYPE(Color)
	INSERT_STRUCT_TYPE(Plane)
	INSERT_STRUCT_TYPE(Vector4)
	INSERT_STRUCT_TYPE(Vector4i)