Sunlightlabs/validictory#42

So here is a fixed variant of the pull request from @juanmb. This includes tests to demonstrate the impact of his change in additionalProperties validation, which I mentioned in sunlightlabs/validictory#58. Hope this helps!