bitarray: less unpackings, fix return types, more testing
Merge pull request #2255 from carlobaldassi/bitnounpk

bitarray: less unpackings, fix return types, more testing