Compensating for omitted count parameter masked some failing tests.

The calculation for alloc size on the GMP site always returns a count of at least one, however we add one for null termination, so added a special case for zero sized outputs.