Fixed clone for arrays