Add special type to let obj_*link take either pointer or index