As far as I can tell, the Value has be created with a Value::Type::STRING type or it gets ignored when writing to file.
I’ve got to say that it doesn’t make all too much sense that it’s being checked like that because non-VECTOR/MAP/INT_KEY_MAP types should theoretically get their respective string values returned correctly by the stringstream.
Tested and works. I will have to setup my code to convert the values. Here’s to hoping it’s changed in the future, but I think it’s a low priority thing for the devs anyway right now, as it’s not so important.