Another round of auto_alloc_array conversions.

Some minor enhancements to dynamic_array, including clearing to specific values
and expanding and clearing newly allocated values.
#if 0 around some debugging code.