Thomson, Manlius Valerius, 1802-1850