Fix crash tensor.roll(Var, iscalar) reported by Jeremiah Lowin.

NEWS:
- Crash fix tensor.roll(Var, iscalar) reported by Jeremiah Lowin.
- Memory leak fix on the GPU when allow_gc=False reported by Jonas Gehring