Added support for merging arrays.