Replace class  with typename in templates.