I feel like it's problematic to actually use the IntPtr type here, and instead we should store it as a scalar, and it will still serialize correctly into pointer in kv1.
As far as I know nothing actually uses this type, but we have silly code to handle it, and it currently truncates to 32-bit.