Allow method chaining on MessageBag->setFormat. Closes #1580.