max -> maximum
Fix packing of empty arrays