use same check everywhere
one day I will know how @:generic works in Haxe...one day...
think I got it..
fix when()
1.0.2 release
Merge branch 'release/1.0.2'