Over a nearly seven-decade career, he imbued comic roles with pathos and serious roles with a touch of sardonic humor