Support multidimensional arrays in cgen_dyn_aggregate