fixed addtionalProperties and patternProperties interaction