better dynd -> numpy conversion