Don't yamlify args containing only digits and underscores

Fixes #16583.