Made malloc_mul never return null (for zero length counts), removed zero-length malloc calls.
Added some zero-arg templatizations.