ADT.List: Moved some code around. Moved some low-level list handling code to nearer to where it is used.