add remaining Array2D tests and fix exposed bugs