Allow values to be serialised aswell as deserialised, maybe feature gate after checking compile time difference