Renamed avg_size to avg_packed_size in all concerning files