fix to lib svm format and check to make sure coded and uncoded splits consistent