Dr. Abraham Gesner, Polymath