Save the result of CTYPES_FROM_PTR in CAMLlocalN-bound variables.

Pointers are heap-allocated nowadays.