optimized rendering of references and rendering of ` as containment

http://gsd.uwaterloo.ca:8888/question/537/render-clafer-models-as-a-graph
point 4.