Lots of small fixes

- Improvements to C codegen for the 'for' loop
- Lots of improvements for namespacing, but still not done yet
- Ability to import 'struct' types from C headers and refer to them in code