Add unit.get_race method for forward compatibility.