Add List.iteri and List.mapi for compatibility with older versions of OCaml