index-pack.c: correctly initialize appended objects