[xla:ffi] Unit tests for CPU type-safe custom call 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/64988/checks?check_run_id=23390210688) 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] Unit tests for CPU type-safe custom call API


Port existing CPU custom call tests to the new FFI API. Add new test cases, mostly taken from GPU custom call tests.
Implements #10060.

The tests are disabled for now, they will be enabled when #10056 is finished.
