Adding some WAMP/JSON-friendly encoding methods to containers