Fix bug in _deepClone() to safely copy arrays.