std.bitmanip BitArray refactor

I reviewed BitArray and found a few issues:
- constness
- incorrect treatment of "pad" bits
- many places where size_t should have been used.
Just realized that if ```newlen > len``` but ```newdim == olddim``` some pad bits don't get cleared.