getType() on a Function is always 'ptr'. We should use getFunctionType() so we get the function signature.