Fix a bug in deque implementation.

Missed a static cast when copying HabaneroC's code.
Remove the frame argument in deque_pop.