Fix checking for schema's highest type attribute: allow union values
Let validateRequired() check the undefined value, to generate proper error
message
Be more strict regarding declared types: throws error when encounter an
unknown type
Merge pull request #19 from feugy/master

Union type not supported at highest level