Make Visualizer::setMode() return a self-reference.

Fixes #206.