create a resolve_argument_type to capture some of the old type mapping logic needed by CUDA target

The python type mapping refactoring lost some capability required by the CUDA target.  This PR puts it back.