Update oclarray copy_to_device and add tests