Properly recurse into tree entries.

This might be harder than it should be.