Fix strict pass by reference on array_shift