William Fraser Tytler — Scottish lawyer and historian (1777-1853)