Added extra message to check_type if arg was empty
Added adaptive algorithm to gpc_param_expand