Add `tree-il-fold', a purely functional iterator on `tree-il'.