Fixed list workings

Had to add a method to get indexes. Next step will be to combine
separators and array separators into one reasonable separator.