Simplify emscripten::val a bit, reducing it closer to its primitive operations.