Lazy-compile related templates. This fixes an error caused by array_unique casting nodes to strings.