Handle repeated enum and composite fields in jsonToProtobuf.