There are code paths, notably in treeify_line, which invoke untreeify on nodes that aren't trees.
That could be a bug, but having the assert is counter-productive as it currently fires on nearly any procedure call.
If the untreeify logic can be rewritten to only be invoked on trees, then I will re-enable the assert.