Fix TraitError from Threshold._update_ranges.

Fix for issue #136.