Fix strict standards pass by ref warning for array_shift()
Another attempt at a fix for pull request #8