A new global ranking may raise doubts about Canada's reputation of being open to other countries.