Add part of the 'patternProperties' validator.

Handle cases where 'patternProperties' appears without 'properties' as one
of its neighbors.

SetSchema can now return an error value.