Union type not supported at highest level

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