Merge pull request #29 from Acubed/master

Implement some v4 support and fix bugs
Update test suite and fix additionalProperties to only apply to object properties