perf: Make is_type faster and cleaner
perf: Make is_type faster and cleaner

Instead of flattening to find out `is_number`, we can just check `issubclass(int, pytypes)` which doesn't require flattening the types list. Only if that passes do we need to look further.

Julian/jsonschema,Julian/jsonschema,python-jsonschema/jsonschema