cli: fix dumping of nested lists (not that there should be any with our output)