Hardy, Thomas Masterman, Sir, 769-1839