Allow null as a valid value for functions that take pointers

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