Added global array support to C code generation in skel replay