bignum.cpp: Fix regression in bignum conversion. Fixes #1072.