fix #2360 (BitArray ref/assign performance)
bitarray: remove some useless definitions