Decide whether a child argument is a leaf in a better way.

Anything not callable will be considered a leaf and given to text(),
after unicode conversion and html escaping. Added example to
demonstrate.