Use foldLeft instead of collect when gathering shapefile validation errors