Added enum registration with std::map.