Allow the metadata to be dumped, use "metadata:" consistently

There is some overlap with #1022.

refs #1021