Using non deprecated call to set object class

Setting array and dictionary class with the non deprecated call object_setClass().