Fix _defineConvenienceMethod to be defined as part of t.

Also, internal templates are now compiled once.