some fixes, some breakages

discrepancy between byte-ordering in registers and in the byte
manipulation extension methods.