The actor who was vilified for his stance on the 2nd Amendment made three of the most liberal and thoughtful sci-fi films of the 1960s and 70s.