Bug 945788.  Add support for dictionary return values to example codegen and js-implemented codegen.  r=smaug