Clone passed array