fixed variable & array initialization in code_gen