Fixed NaN support in KMeans2
Removed unnecessary asEnum in NN test