instantiate templated class with arg AND as array