Integer types

I've run long predictions with/without this change, and don't think there's a difference. I believe that the multiplication of index * stride caused the indices to all be promoted to longs anyway.

That said, it can't hurt. This could feasibly bite us at some point?