The Canadian arm of Tesla is taking the Ontario government to court, claiming it has been treated unfairly in the cancellation of a program providing refunds to residents who bought electric vehicles.