Improve speed of `ndigits0z(::BigInt)` using logarithms (#8743).
Merge pull request #8752 from simonbyrne/bigint-ndigits

Improve speed of `ndigits0z(::BigInt)` using logarithms (#8743).