be smarter about cloning with regard to arrays