Reproduces and fixes issue LUCENE-5423

First commit adds a test that shows the unexpected behaviour. Should the dcumentation of getAndSet be updated to recommend not setting bits right of wlen the unexpected hashCode behaviour could be triggered by manually setting wlen. Although bitsets having bits set right of wlen are kind of invalid in themselves, fixing the hashCode method seems advisable.