inlined Std.is for class/interfaces (x40 speedup)