Bug 851178 - Add support for JS-implemented WebIDL constructors with arguments. r=bz