Add NaN to tools functions getType, emptyVal and emptyStruct
Clean tools