fix #5873, ndigits(::BigInt)