Use typename instead of class in template parameters