a function that coerces bit() and logical() vectors
Details
determines the range of the integers and checks if the density justifies use
of a bit vector; if yes, maps x or table -- whatever is smaller
-- into a bit vector and searches the other of table or x in
the it vector; if no, falls back to %in%