Add more object validators.

The only big change in here is that `SetSchema` now returns an error. If the error isn't `nil` validator creation is canceled.