Union type not supported at highest level

Fix issue#18:
https://github.com/oferei/json-gate/issues/18