Fixed bug with killed enemies

Fixed a bug where enemies destroyed by code wouldn´t trigger the
ontriggerexit event, and would remain as nulls in the enemies in range
list.
Made the ranger also a unit

The ranger has also been made a unit. Highlights one of the problem with
archers: projectiles.