fix implicit integer downcast in __Pyx_PyByteArray_AppendObject() function
special case and optimise both PyInt and PyLong types in __Pyx_PyIndex_AsSsize_t()