Serialize credentials in xml

First commit change serialization in message `registerNym`.
Second commit change serialization in `issueAssetType`

Closing #441