Make the Index the TreeLink, not the IndexDef

This makes it more parallel to how Group works.
IndexDef is more or more deprecated.