Make EMP deactivating a monster consistent with disabling a robot by the player

- using mtype::revert_to_itype for resulting item.
- check for mtype::revert_to_itype to decide whether the monster can be deactivated.
- common code for manhacks and turrets.
- loop through all the ammo of the monster.