Add keyword validation for draft v3's type

As predicted: it was a nightmare.

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