Wrap register name/value/defined-ness up into the same struct in prepara...

...tion for writing registers.

#605