Add getVariables method to DataSet.