Fix array clone problem in 'calctradeoptions'