[GEN] Add generation of arrays