fixed BitArray returning extra leading zero sometimes, added support for using arrays of primitive bytes and ints