Fixed constant parsing
Many fixes to symbol collecting and code generation