utils to support implementing bit string traits
Generic helper methods to treat [u*]-slices as big endian bit strings.