list of enums on demand. (ROOT-5703)

Just sent the pull request so that you can see, it builds but I haven't tried the list of enums yet. :-)