bignum: fix hard-coded radix in toBits(), remove broken Math.min

* fix hard-coded radix in toBits(): need to round up len first if radix isn't byte aligned, which makes it also more readable
* remove broken Math.min (which luckily never triggered) - only the first limb is possibly stored partial, all other limbs are stored with their full "radix" size.