Add tests for subclassing validators (#25).

Also fix a small issue with subclassing compound validators.