Fix tests for reading and writing Avro records with empty arrays and maps.