java/interp: Operand stack wrappers

Add wrapper functions for accessing the operand stack. This is useful
for switching now from deque-backed std::stack to std::vector and
eventually to the mmap-backed per-thread stack.

Signed-off-by: Pekka Enberg <penberg@iki.fi>