Something like:
fn get_singleton<T>(name: impl Into<GodotString>) -> Result<Gd<T>, Error>
Right now you have to do something like:
self.get_node_as::<MySingleton>("/root/GlobalMySingleton")
That's not very intuitive.
If we implement get_singleton like this, it would need access to the scene tree. I'm not sure if there is a better way.