Move stack entry cleanup to callstack_pop

At the same time publish that function.  Eventually the whole push/pop
logic should be moved to a separate module.
2 files changed