Add unit test
Rename local variable in generated code

closes #197
Merge pull request #198 from OP2/issue-197

Issue 197 - Fix name collision in CUDA global reduction kernel generated code