Add UnitType enum, now it is part of config.