apply format "canonical" to activies 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.