LUCENE-1459: fix CachingWrapperFilter to do the right thing if the wrong type of bitset is in its cache