Handle enums in optimised check for Std.is(_, Array)