Fix bug in {inc,set}_subtensor in advanced1 case

Reported by Stanislas Lauly
The final value is the same, but the path taken in {inc,set}_subtensor is not the same.