Add a validator for schemas of dictionary keys

Allows defining a schema for all the keys of a dictionary with the
keyschema schema key. The dictionary may have arbitrary keys, but all
of these must validate against the given schema.