Store index ordinal number (id) in key_def.

A pre-requisite patch for data dictionary: sotre index
ordinal number in the key_def object.
Remove struct space from index constructor.