[js] optimize Std.is for common types
Merge pull request #2543 from nadako/stdis_opt

[js] optimize Std.is for common types