Fix the iterator mode in ProgressBar to call update before returning.
Merge pull request #1087 from alexrudy/progressbar-iter

Fix the iterator mode in ProgressBar to call update before returning.