Clean up and correct typos in bernoulli.hpp.