Make deepCopy work in strict mode