Add source type validation

If index table key type is a table (reference type), source column
type must be the same table.