There's only one case where exclude contains a repeated and unsorted value, that is when the test file contains the objective field also. In this case, the first index that is included in the list `exclude` is the one belonging to the objective field, and it appears again if you don't add it to the --prediction-fields list.