Simplify freeing of lists

Reduce full list iterations number.
2 jobs for !93 with list-free in 2 minutes and 43 seconds
latest merge request