[xla:ffi] Adapt CPU custom call tests to changes in typed FFI API
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this [failed invocation](https://github.com/tensorflow/tensorflow/pull/65710/checks?check_run_id=23819570777) of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.
[xla:ffi] Adapt CPU custom call tests to changes in typed FFI API

Handle Result<T> and Ret tags.
Change expected status codes and messages for tests expecting failure.
Fix FfiHandleBufferBaseDouble test.
Implements #10060.
