A couple of improvements in VexCL code

With these changes, the time of the standalone test on a Tesla K40c reduced from `0.426s` to `0.379s` for input size `1024 * 1024`. Measured by `time ./test $((1024 * 1024))`.