Bug fix in variant_tree::put_child()