[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.
Update: the tests should not have been the same. Discussed IRL and fixed in @nouiz's PR.