json2protobuf: repeated messages processing