Fix failure to generate runtime types with duplicate schema