Revert "Fix an array copy optimization bug."

This reverts commit e2d818a0a2133d0a5302c98b722f35c9cf068d02.

Change-Id: I53dc72cc06d4a28d4145aedaae5d09b7ff33bb37