Leibniz’s Foundational Thought in 18th-Century Mathematical Debates