Use clone() instead of manual population of array copy

1 job for opt-array in 11 minutes and 20 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #16395
build

00:11:20