Still the same problem, whenever a player controlled by a computer (in this case Player 12 or Neutral Hostile) own the unit it won't respawn. When I change ownership of the unit to for ia. red or blue (not computer controlled) it works.
In the example above I put in some actions to see that it actually works, and yes the variables stores the correct information; Which unit it is and where it dies.