Merge pull request #72 from pjonsson/issue71

Add rewrite rule that fires on index calculations for MultiDim vectors.