India is overcoming its aversion to free-trade deals to cozy up with Canada and other middle powers.