fix payload keys

A few changes left out from PR #2854

prevented pager or set_next_input (%load) from working in the notebook.
Merge pull request #2872 from minrk/fixpayloads

fix payload keys