I discovered via the HPy tests that the behaviour of PyLong_AsSsize_t in cpyext raises ValueError instead of Overflow error in the case of overflows.
This branch adds a test and a fix for this case.
It also adds a test for the case where an object that is not a PyLong is passed.