Made create log level chooser return a log level.
Made solenoid pair support undefined states.