backport 0d array power fix to 1.8

backport of gh-4145