Make typesets iterable
Add test for hash-based vtable creation