[mycpp/runtime] Fix serialization of nan value