fixed gpu bitwize operation:

incorrect types for template instantiation
Merge pull request #1306 from jet47:gpu-bitwize-fix