fix #4093: allow bools to SetUnitValue