Improved function pointer checks.