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

Fixes #372.
What is the 1024-after-encoding limit (sorry for potentially n00b question)? If we are exercising it, could you put a comment in the code explaining the necessity.