Make option validator able to validate Class objects.

Use this to tighten up the validation for the notification view class
option.