Use a `state` object for `buildTemplate` like `buildModule`.
Remove `_.debounce` from lodash/underscore build test as it's not replaced for the underscore build.