Javascript: generalise test-case 'typemap_variables' so that it can be used for Javascript V8.

The original version contains output typemaps that produced incompatible code.
Introduce a pre-processor macro that is set to a valid value for v8.
Merge branch 'master' of https://github.com/swig/swig