* bugfix in mathutils.Bits.as_list
list(Bits(0, 2)) == [False, False] -- which is the correct behavior
Bits(0, 2).as_list() == [False] -- which was a bug
* DRY internal function and avoid blowing up length in tests
* fix tests
* bytes and hex both pad to 1 byte so combine test
* fix roundtripping tests
---------
Co-authored-by: Mahmoud Hashemi <mahmoud@hatnote.com>
these are expected to fail
* for Python 3, because the argument defaults (None) are incomparable
* for Python 2, because None<x for all ints and floats x, thus clamp(x)
returns None