Fix more line overlap issues.

Forgot to check whether we overlap tree_end edges in
do_update_line when adding check for tree_start overlaps.
Adding the check seems to resolve the remaining exceptions
when playing with overlapping trees.

Fixes #17