Fix generation of subclassed complexTypes.