Fix ICE translating array repeat expr of non-Copy type

Closes #18425