some dynamic_buffer/dynamic_array usage cleanups (nw)