array_malloc needs to use calloc, because it expects alloc'd bytes to be zeroed. Otherwise, crashy crash.