Halliday, Andrew, Sir, 1781-1839