free_inlines:  use non-recursive algorithm.

This will help avoid stack overflows in deeply nested structures.
Partially addresses #187 (still need to do renderers).