Setting dashes to (0,0) results in infinite loop for agg backends

Other backends may also be affected. I have not tested exhaustively.

It would be good to check in GraphicsContextBase.set_dashes that dash_list is not all 0's. Some backends (cairo and gdk) override set_dashes, so those may need to be modified as well.