Fixed issue when source array is smaller than target array

There was a copy-pasta error when generating operations when a target
array is larger than it's source. This was apparently not covered by any
test fixtures.