Alison, Archibald, Sir, 1st Baronet, historian