Correct a bug in OBJ_PARTIAL_VECTOR_FOREACH_PTR