d3sparql.tree is improved to avoid (only) direct loop (parent == child)