Fixed how functions are added to the `variables` baremodule
The technique I was using worked in Julia 1.10, but was not officially supported and hence broke in 1.11. This version should work in both.
The technique I was using worked in Julia 1.10, but was not officially supported and hence broke in 1.11. This version should work in both.