fixed autodiscovery of enums.  Tests pass