fix bug graphviz nested

paths with wrong link (always was has-link)
fix template nested context diagram