generate the expected (fast) code for isinstance() checks on builtin types