Casamaijor, James Archibald, 1784-1863, colonial administrator