(PUP-1029) Improve error message consistency and information
This improves the consistency and content in the iterative functions
when the given block has too few, or too many parameters.
It now shows what is expected logically, how many parameters were
defined, and what their names are.