handle undef as a constant in getValueAsCastParenStr, because otherwise it is cast twice, causing emscripten #2314