Correctly handle Avro records with empty maps and arrays.