Improve --error on the CLI

This fixes issues with Multiapps and unused parameters in the parser.
#4100, #4101