Changed backend representation to use CIO instead of IO. Also removed tuple conversion of DevicePtrs.