Better detection of sketch mode (active/static/mixed), with a (possibly)
more helpful error message on detection of mixed mode.

Fixes https://github.com/jdf/Processing.py-Bugs/issues/95