[TDF] Add support for a more general leafname syntax
[TDF] Add support for a more general leafname syntax

This commit fixes ROOT-9268 and part 1 of ROOT-9142.

olifre/root,karies/root,karies/root,karies/root,root-mirror/root,olifre/root,olifre/root,olifre/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,karies/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,root-mirror/root,karies/root,karies/root,olifre/root,karies/root,root-mirror/root,olifre/root,karies/root,root-mirror/root,olifre/root,karies/root,karies/root,karies/root