[tree] FIX level in MaterializedPath if 'path_starts_with_separator' or 'path_ends_with_separator' are set
Merge pull request #840 from Mordred/tree_level_v2.4.0

[tree] (v2.4.0) FIX level in MaterializedPath