Fix semantic analysis of global var lvalues
icode: Support global variables
Add cgen test case (disabled)
Minor refactoring
cgen: Implement int global variables