Handle Math::BigInt inputs a little better