wmts: show common upper levels in item name (relates to #9492)