fix choose_to gendefine, add default to generated case statements.