Restore TypedMessages inheritence from MessageBag. Updated unit test for it.