Test bitarray assignment to global register.

Big-endian bitarrays and normal integers should result in the same
output/behavior. E.g. field=253 should result in the same output as
field=bitarray("11111101").