Add support for copying array