Numpy 1.8.0 needs int32 for bincount