Bug 1024132 - Add one slot cache for stripping leading and trailing .* from RegExps for test() calls, r=jandem.
Bug 1037898 - Remove pointless and incorrectly used TypeSet constructor calls, r=jandem.