Fixes issue #428 Allowing UniqueValidator to be used with non-AR models.