Add dump to SREG for debugging.
Change SREG to use bits for flags.

This makes it easier to test for flag changes in tests.  It also
reduced the amount of code in SREG (e.g. one set function rather than
one set function per flag).