use static arrays as SArrays in CG, instead of pointers