parse arguments list for a specific type an returns the first occurrence
pos = find_type(argList,type,all)