Fix long-standing typo in BitArray convert function

This became a bigger deal with 430de02039900227c6cebead8431fee0279bf9e1