fix ArrayList_Shift for args (al, 0, -1)

As a result, this should fix #1051.
Merge pull request #1081 from zeha/arraylist

fix ArrayList_Shift for args (al, 0, -1)