Index def in table profile 2

IndexDef is tightly concerned with a table. So it's natural that
TableProfile has it.