Fix pickling of Values.