Removed some auto_mallocs in favor of dynamic_arrays.

Added option to clear dynamic_arrays; on gcc this should assert if not
done on POD (which is unsafe to memset).