create #data_array for extracting arrays of arrays of data and optionally prepending the variable name to each array