type: fix wrong output for function and undefined stack elements
cmd_history.fromJSON returns undefined, which was not dropped after loading the history
mark extended macros, this simplifies debugging them