changed pop and shift filters to proxies ruby calls see #2892

Right, but if Ruby automatically returns the value returned by the last line of a method, isn't the temp variable unneeded?