Test cases on macOS (using native tcl from /usr/lib) fail when $lst starts with numeral, because upvar guesses that its first parameter is level rather than otherVar.
The fix is to explicitly supply level to 1 (default value if uplevel is omitted) to avoid tcl exception "expected integer but got 3dviewer".
set get_value [lindex ${option} 2]
set local_value ""
if { [_check_arg ${option_name} local_value ${get_value}] } {
- upvar ${variable_to_save_value} ${variable_to_save_value}
+ upvar 1 ${variable_to_save_value} ${variable_to_save_value}
set ${variable_to_save_value} ${local_value}
set toContinue 1
}