be a bit smarter about the item index during type inference of indexed slices to allow for better type inference of non-homogeneous containers