* Update list handling code to deal with nested lists better and badly formed