Fix gpu strides crash

NEWS:
Crash fix:
* GpuSubtensor didn't set the stride to 0 for dimensions of 1. This could lead to check failing later that cause a crash. (Frederic B., reported by vmichals)

fix gh-1146