Implement IterBytes for TypeId