improved internal method EnumMap::initEnum()