fix bug: do not validate undefined, null and NaN types
0.0.5