add key extractor for InstanceValidatedWithOptionalName