fix a bug when generating a content type: every required field was also marked as localized