Tweaked _new_array() to handle new use_calloc parameter.