Clean up tracked rows in removeRow

Note: This commit also contains a fix for bug
in Tree query that blocked collection tracking
Clean up a bit of Tree logic and rename justCleanup to preserveDom
Fix broken rowIndex maintenance which was causing test failures