Added specialized pop and copy routines for frames.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>