Test caching of NextIsBracketed.