Replaced some IsGenerated by IsInternal.
CheckIgnoreField now properly handles internal fields.
Declaration IsInternal is no longer true when GenerationKind is Generate.