Fixed a bug where saving relations would not preserve ?-Bool. Fixed a bug in max() and min() when comparing booleans.