hierarchy.revalue: remove empty children array.

For consistency: treat nodes with an empty children array as leaves.