Bug 1022736 - Allow cacheing of GlobalObject getters on non-global scopechains. (r=jandem)