Use pointer-serialization macro.