MOB-8494: Correcting ArrayAutoPtr API.