Raise error in case index transformation is not linear
Merge branch 'pr2081_review_4' of https://github.com/raoulb/sympy into raoulb-pr2081_review_4