Fixing error in generate.cpp
fixed code generator for array of structs constants