Better dargparse function resolution