Allow objects to be marshaled outside per-test lifecycle.

This was reported by @noelrappin:

https://twitter.com/noelrap/status/418853517323796480