Move updating nbits and masking unused bits into Bitv/BitvSet's reserve functions.