Re-initialize curand RNG when changing device

Fixes #165
Merge pull request #166 from akfidjeland/curand-init

Re-initialize curand RNG when changing device