fixed some gaps with default generation for polymorphic structures