Sir James Dalrymple of Stair (1619–1695), President of the Court of Session, Created 1st Viscount Stair