IO: Make Mode enum into enum class to fix problem with ATtiny.