Add a helper to find the argument types of external functions