Add code to prettify namelist keys

Fixes #1129.

Down-cases namelist keys.