Added a function revertListIntoArray to undo what splitIntoList does.