Fix #7684. Mask words with bit size for the fast population count tests.