Bugfix which resets undeployedunits and deployedunits sets when deleteAllUnits() is called.