User blog comment:Wythagoras/Dollar function part 2/@comment-5529393-20130616054606

Also, you only resolve subscripts of the form (b+1), you need to handle subscripts that are arrays (and can even have their own subscripts).

Please see my comments in "Dollar function part 1", I corrected some of the FGH associations which affect some of the comparisons here.