Infer dependency names from block arguments