Reverted revision b823f710a2c7 (Use weakmaps again now that bug 819131 was fixed in Firefox 20) - there is apparently some other bug related to weakmaps