Update to use the correct template type for repec.

#3939