Bug 927796.  Make sure we don't end up with options in a bogus state where their DefaultSelected() doesn't match mIsSelected but they think their mIsSelected value hasn't changed from the default.  r=sicking
Bug 934544.  For the case when we have to copy an XPCOM string into a JSString, just ask the JS engine to do that.  It'll do a better job of avoiding malloc than we can, since it can sometimes store string data inline in the string.  r=peterv