Factor out a Function.prototype.name polyfill
Memoize template parsing