Misc fixes for parameter parsing with --list