Changed most uses of DMat::array() to use iterators.

Still using array(): ffpack routines, dmat-LU.