Make repr more compact to better accommodate long hierarchy lists.