Fix an issue with copied statistics scripts

The StatisticsProperty has a pointer to an ArithmeticScript object. This
pointer must not be copied in the copy constructor (called by the virtual
copy() method), or it will get double deleted.