Fixes Issue 8948 - Better diagnostic on function pointer mismatch.