minor fix on removeArraySubscriptExpr

the correct EndLoc should be at offset 1 towards
the end range of the passed expression
bug fix on nested ArraySubscriptExpr

don't rewrite any inner subscript expr if it refers to
the same var as the outer expr