Add support for progress bars (with tests) and improve the array helper a bit