Fix all-cells COMRef creation regression. Reimplement ToDOT for debugging purposes.