fix getFuncWrapper for aliased function pointers, fixes #2010