Fixed printing of cuda_device_type
Some debugging
More debugging
Fix to base_memory_type
Fixed up more apply tests
Small fix
Windows fix
Merge pull request #208 from izaid/apply_2

Apply tests