changed pop and shift filters to proxies ruby calls see #2892 (take 2)

[As stated ](https://github.com/jekyll/jekyll/pull/2992#discussion-diff-20418090) by @parkr  My first PR was a little bit verbose. This is a new one fixing `pop` and `shift` jekyll filters.