[BUG] Fix bug in {inc,set}_subtensor in advanced1 case

Reported by Stanislas Lauly

Stan got wrong shape that caused crash. But could have generated wrong value without wrong shape.