Ferguson, Robert, 1799-1865