Revert "Improve determination of array shape for constant expressions"
Revert "Improve determination of array shape for constant expressions"

This reverts commit c8c9c42f14c742c6fcb180b7a3cc1bab1655ac46.

ricardog/raster-project,ricardog/raster-project,ricardog/raster-project,ricardog/raster-project,ricardog/raster-project