apply format "canonical" to activities only

* typo fixes
* applied "canonical" format to activities and not agents, since agents will not
have extensions, and there isn't a lot of point in normalizing name across statements.