Whitespace fix and muted mwcstage.
Added type codegen for variables and function return types.
Replaced all void* instances with proper types in codegen.

This might not be enough for all the cases, yet in general this thing should work. As a principle one might argue that type generation shall never add any statements, but rather move its declarations into the code repository.