Changed 'postordered_each' to use iteration.

This change fixes bug #12, where the recursion for deep trees was leading to out
of stack memory errors.