Added check when # indices in conenction set does not correspond to
index dimension.