Fix bug in prompt code

Ctrl+W now displays the right thing
Add stack size check for OP_GET_DICT