Return memoized nullPointer from Pointer.getNull() instead of looking up Pointer::NULL each time.
Fix issue #612 - restrict struct parameters to those of the appropriate type.