Canada's main stock index posted a small gain Tuesday, while the loonie also regained some of its strength against the U.S.