Add support for calling IndexOf and LastIndexOf on a List in the index