Merewether, John, 1797-1850