Converted some switch lookups into array-based ones.
This saves a couple hundred bytes in progmem, amazingly enough.