Ramsay, Allan, 1713-1784