MOB-8494: ArrayAutoPtr copy constructor and assignment operators require non-const parameters.