Support :validate_dependencies option.