Some code modifications again, and add new tests

Covered: additionalItems, minItems.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>
Add tests for a good number of keywords

And improve/fix test code along the way.

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>