Refactored HuePreference to more general ContinuousValuePreference; miscellaneous changes