fix cloning of Arrays