Bug fixes re LastIndexOfSlice when using KMP search