Over its many decades on our screens, Star Trek has occasionally killed off major characters only to bring them back.