index-pack: distinguish missing objects from type errors