Merge tag 'v0.18.1' into develop

0.18.1
Added the ``getValidator`` method to modes.

Modes can now implement ``getValidator`` to return a validator to
perform some ad-hoc checks that can't be performed with a schema-based
validator.
Fixed a refresh bug that caused errors to be duplicated.
Version bump.
Merge branch 'release/0.19.0'