made proper update of class value_option
stripped some unnecessary comparisons from implementation of class flag_option