Fixes for simulator in alternate configurations.

Fixes to compile simulator with STEP_PULSE_DELAY and/or ENABLE_SOFTWARE_DEBOUNCE

- Typo in timer def,
- Handle 8 bit timers correctly,
- Don't skip TOP count in CTC mode
- added SREG for atomic bit operations
- Add WDT access variables

Plus replaced tabs with spaces for consistency with rest of code.