makeConstantNimbleFunction: nimble constant function generator
Description
Create global constants that can be used in nimble functions.
As of nimble 0.6-12 there does not appear to be official support for global constants.
This function creates functions that can be used in place of constants.