Change varargs[T] to openarray[T]