Add processing of tips/refs: they do not have any outgoing edges #9