Added support for fromIndex (2nd) parameter for indexOf and lastIndexOf.