uint getter returns register type
Fix setter arithmetic

I'm apparently getting tired.
Choose FromPrimitive method based on register type
Add allow(snake_case_functions) attributes to impls