Allow null as a valid value for functions that take pointers

This is a fix for issue https://github.com/oliver----/swig-v8/issues/41 for JavaScriptCore.
See Issue this issue for my proposed v8 solution.