Correctly wrapping a request message in a ResourceContainer.

Fixes #107.