Since this drops directly into GLSL, it can't/doesn't support dynamic types or closures -- types are inferred into their GLSL equivalents.
I do agree that being able to control precision is important, and as of yet I'm not sure the best way to implement that.