Fixed encryption of full messages with unity.

Fixed encryption of full messages in unity. Added profile name in unity
builder for registering IElementSerializationBehavior so that resolve
all works  since it can't handle multiple like types unless there's
different names.