Further clean-up of dynamic_array.