Move is_device_iterator to the public API