rst: complete rewrite of __rst2graph()
rst: if unknown, use segment_type 'span'