Fix bad implicit conversion constructors in the JS engine
Fix bad implicit conversion constructors in XPCOM