Handle default uint attributes properly

...and passing a whole bunch of new tests.