Added new0() and new_array0() to allocate and zero the memory.