[ArrayManager] Implement .equals method
xref #39146

Moved the common part (checking of dimension and indices) to the base class `equals` method so this can be shared, and the actual BlockManager/AraryManager then only need to check the column values.