Fixed a couple of symbol conversion issues.
Fixed generation of global variables under certain conditions.