Add a simple facility to print the list_append graph in order.

Via standard tsort module.
Add a failing test case.