improve awkward vertical stacking in dz_from_drho and depth_ntp_iter