[lib/ocaml] fix float conversion on ARM

On architectures/platforms where doubles need to be aligned,
link was throwing a Bus error since the floats in the received message are not aligned.
Now it just copies floats/doubles byte by byte to avoid this issue.

This should fix #421