Add regression test for pseudo-hierachy via iterator delimiter and prefix.

Fixes #372.
I think I had in mind that the hierarchy depth is arbitrary (subject to the 1024-after-encoding limit), and wanted to exercise that a bit more.