fix signature of getArrayOfFeaturesAndLabels