Support enumerable configuration.

So that console.dir() output will show the program structure if the
environment variable CLI_DEBUG is set.
Rename CLI_DEBUG to CLI_TOOLKIT_DEBUG.