py: Fix 2 bugs in native emitter: jump_or_pop and stack settling.

Addresses issue #838.