Apply type filter to changes that apply to the current path.
Reintroduce a primary key for Path for speed.
Re-introduce descendant path tracking for speed.