fix TaskSetValue bug

add missing `&`
fix #386 cuda5.5+ bug

add unique id for class which creates shared memory
fix comment typos
Merge pull request #401 from psychocoderHPC/fix-cuda55Andcuda60Bugs

fix #386 cuda 5.5+ bug