Of course it's the same identifier. Otherwise for each hero revive you'd have to assign a previously set unit variable to the hero after reviving once again. But you don't.
The hero is revived, so it is still the same, if you take a look the altar revive is a unit target order, When A unit dies it still exists that happens with heroes two , otherwise it would be difficult to make a map with a Heroes array pointing to heroes