adapt types.dictionary to behave like a leaf_validator'