Check bounds in set_option_value()