Added nested CSS counters to elements of tasks tree.
Fixed incorrect tree elements parent-children grouping.