Fixed all the compile time errors while making the class a variadic template.