Add takedispatcher / setdispatcher

These were very common bail points.
Add getcode op