Correct Bernoulli-log estimation formula. Remove some, but not all, warnings for x64 size_t versus int, unsigned.