Support shard-safe nested validations on Rails 3.2+