Move bitarray.h out of the common space as it's not used by the LIN definitions anymore.
Add range checking to bitarray.

This could probably be smarter, but for now Fixes #79