Add support for dynamic enum.  Fixes #61