misc changes

- Add support for defining precision of generated code
(float,double,long double)
- Fix up initialization of module "globals"
- put code in namespaces in c++ generator
- prep for generating image engine code