Fixed a bug in IndexOfSlice whereby the wrong index was being returned (off by 'from')