Fixed chicken-and-egg problem with creating nodes for scripts in call graph and template tree.