adding support for arrays in data generator