Merge branch 'rs/pack-objects-no-unnecessary-realloc' into maint