Fix validation of "fields" type; test type checking of default values when the "fields" type is used in conjunction with repetition.