Added test for graph_reference 'type' fields. update graph_reference.
Merge branch 'refs-check'