AtomicArray.toArray will now throw an exception if target array if of the wrong size.