Fixed consistency issue in maintaining the pathtree on deletes
Minor refactoring to ot2dom
Cleanup in pathtree on delete