Add `term/2` token to the structured message printing mechanism

This new token allows to overcome the limitation of the de facto `format/3` predicate that doesn't support specifying term writing options.