Doesn't compile and the design is in flux anyway, but I want to get back to iqm.
Currently, only dumping to dot, but that seems to be a very sensible place to start: debug support.