Bug 1018771 - Use Maps and Sets in XMPP code, fix missed hasOwnProperty. r=aleth