You see, I am trying to update my volume plugin to have a more global way of handling slices of volumes. But to do that I'll need a Singleton. More specifically, one that can be added and removed via script. And can run in both the editor, and on runtime. Something like this-
_enter_tree():
add_autoload('my singleton')
_exit_tree():
remove_autoload('my singleton')
If it helps, here is my current patch of the add-on.