Fix is_member_function_pointer does not account for ellipsis. PR20345. Patch from Agustin Berge.

I reviewed the patch and added the test cases.