nomnoml: refactored relation renderer