this got renamed to shapeOfArray2D for naming consistency.