Corrected KMeans case for degenerate clusters. Correction of string sanitization
Merge branch 'dev'