MCA-specific extension

* template formatting methods
* don't swallow exceptions
* write "x-mca" fields to Codegen classes