Bug 1045181 - Miscellaneous small cleanups in js::gc; r=jonco