Minor cleanup and improvement to efficiency in SegmentedView's overflow calculation. Fixes #891.