Add support for allow_nil and allow_blank options

To be consistent with most Rails validators.