Switches from uint to u32 in BitV and BitVSet

Closes #16736
linked to #18009
auto merge of #18018 : gamazeps/rust/isuue16736, r=cmr

Closes #16736
linked to #18009