in py2 its either all PyInt or all PyLong, the former results in an int array, the latter in a object array
mixes of both do not trigger this code path