Fix None references in Ref and Xref functions in the graph view.  I haven't really traced it to a problem yet in r2 but this is so much better (closes: #228, #229). Also fix a typo.

--HG--
extra : amend_source : e587ad603aeaef60cb28d433de3946b122acc988