Fix minor bug in handling of multiple optional/allow_multiple arguments
ProgressBar: simplify and fix a few bugs