Fix local type used as template arg error.