Clean up warning about const exprs in if.

We now use template specializations to forward to the correct conversion
function for the native size of wchar_t.
Move assignment out of conditional expr.

Not sure why I did that in the first place...
Clean up warning about constant value in loop.