Fix issue with correlation on groups

Both groups and datasets use getData() to get an array of the data. We
were previously skipping this step, then running into issues with the
output of getArray() not being an array.