New Issue: Array module review followup: Move dim and dims into array type

18085, "stonea", "Array module review followup: Move dim and dims into array type", "2021-07-21T15:15:28Z"

This is a followup item for the Array module review.

The domain datatype has functions:

  proc dim(d: int)
  proc dims()

Given that the array type already has several functions that effectively forward to the underlying domain it makes sense to add these two in as well.