Dueling static analyzers: clang's scan-build thinks it's a dead read if
typestr is set outside the switch as well as inside the switch, gcc 4.1
warnings and FlexeLint think that typestr might not be used if it's not
set outside the switch statement.  Set one case outside of the switch,
and just break on that value inside the switch.