fix a bug in Query where __getitem__ wouldnt find slices of results in the cache