Move file-scoped vote_reduction variable to function scope to avoid issu...

...es related with separate compilation of __device__ functions.

Reported by Evghenii on thrust-users mailing list.

Fixes #349