[xla:cpu] Make `HandleCustomCall` support typed FFI
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/65996/checks?check_run_id=23973806800) 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:cpu] Make `HandleCustomCall` support typed FFI

Fixes #10056
Co-authored-by: pparuzel <paruzelp@google.com>
Co-authored-by: Adam-Banas <adambanas@google.com>
