Add PackedType#getTypeIterator, a delegating circular iterator.

This way we can (fairly) painlessly encode and decode entire packed
instances piece-meal.