Allow _santize_indices() to pass numpy integer types.