fixes #470

This is the code where when we see a ``[[foo]]`` config subsection under the ``[enums]`` section we turn ``foo`` into ``FOO_OPTS`` and ``FOOS``.  I added a third ``FOO_VARS`` to hold the varnames we generate in that subsection, since that was useful here and would probably be useful in a few other places.