Store command type

To enable checks on command type (i.e. macro or function).
5 files changed