adding PublicObject::getArrayCopy method