https://github.com/dmlc/xgboost/pull/1417
Fix to a bug when the class function returns more than one value. In that case, the code will fail.