S3L_copy_array copies the contents of array A into array B, which must have the same rank, extents and data type as A.