Various useful methods for dealing with lists of indices.