code: def labelable_values (var)
      # For non-string variables, only values that look
      # like integers can be labeled.
      return var.values if var.is_string_var
      var.values.find_all { |val| val.value.to_s =~ /^\-?\d+$/ }
  end
docs: Helper methods for values and their labels.