[mypyc] Fix overflow error handling in list.insert and tests (#9895)
The test case wasn't actually testing the primitive, since all the
calls were in the driver, which doesn't get compiled.
Also refactor the test cases to help avoid similar issues in the
future.