Fix TemplateTool.getDependencyList()

In particular, 'transactional_cached' decorator was a noop the way it was used.

This reapplies commit d806bdae84fd3cdeb7d20bef6c6274c0a3ec87c0,
along with a fix to test_resolveBusinessTemplateListDependency.